package com.castle.fortress.admin.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.castle.fortress.admin.member.entity.MemberThumbsUpEntity;
import com.castle.fortress.admin.member.dto.MemberThumbsUpDto;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.Map;
import java.util.List;

/**
 * 会员点赞表 服务类
 *
 * @author castle
 * @since 2023-02-20
 */
public interface MemberThumbsUpService extends IService<MemberThumbsUpEntity> {

    /**
     * 分页展示会员点赞表列表
     * @param page
     * @param memberThumbsUpDto
     * @return
     */
    IPage<MemberThumbsUpDto> pageMemberThumbsUp(Page<MemberThumbsUpDto> page, MemberThumbsUpDto memberThumbsUpDto);


    /**
     * 展示会员点赞表列表
     * @param memberThumbsUpDto
     * @return
     */
    List<MemberThumbsUpDto> listMemberThumbsUp(MemberThumbsUpDto memberThumbsUpDto);

    /**
     * 点赞
     * @param memberThumbsUpEntity
     * @return
     */
    boolean saveMemberThumbsUp(MemberThumbsUpEntity memberThumbsUpEntity);

    /**
     * 取消点赞
     * @param memberThumbsUpDto
     * @return
     */
    boolean cancelMemberThumbsUp(MemberThumbsUpDto memberThumbsUpDto);
}
